"""
@Author  : 康帅
@Time    : 2021/4/14 15:46
@Function: 单线程版本:耗时7s多
"""

import time


def mop_floor():
    print('我要拖地了')
    time.sleep(1)
    print('拖完地了')


def heat_up_water():
    print('我要烧水了')
    time.sleep(6)
    print('水开了')


start_time = time.time()
heat_up_water()
mop_floor()
end_time = time.time()
print(f'总耗时:{end_time - start_time}')
